'''
Created on Jan 11, 2010

@author: Alex
'''

import pickle

class FileManager(object):
	'''
	represents a base file manager
	'''


	def __init__(self):
		'''
		Constructor
		'''
		
	def connect(self, filename, option):
		'''
		Connect to file
		'''
		try:
			self.pickle_open = open(filename, option)
		except:
			return 0
		
	def close_connection(self):
		'''
		Close connection to file
		'''
		self.pickle_open.close()